package com.solo.service;

import com.solo.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface UserService {
    /**
     *
     * @param username
     * @param password
     * @return
     */
    public User selectLoginUser(String username, String password);

    /**
     * 新增用户
     * @param user
     * @return
     */
    public boolean addUser(User user);

    public boolean deleteUser(User user) ;

    public boolean updateUser(User User) ;

    /**
     *
     * @return
     */
    public List<User> selectAllUser() ;

    public User selectUserById(Long id) ;


}
